<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<title>预览消息</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="../js/qmsk-1.2.js"></script>
		<script type="text/javascript">
			document.domain = "qq.com";
			var _wxao = window._wxao || {};
			_wxao.begin = (+new Date());
		</script>
		<style>
			body, div, dl, dt, dd, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td {
				margin: 0;
				padding: 0
			}
			pre {
				word-break: break-all;
				word-wrap: break-word
			}
			table {
				border-collapse: collapse;
				border-spacing: 0
			}
			fieldset, img {
				border: 0
			}
			address, caption, cite, code, dfn, th, var {
				font-style: normal;
				font-weight: normal
			}
			ol, ul {
				list-style: none
			}
			caption, th {
				text-align: left
			}
			h1, h2, h3, h4, h5, h6 {
				font-size: 100%;
				font-weight: normal
			}
			q:before, q:after {
				content: ''
			}
			abbr, acronym {
				border: 0;
				font-variant: normal
			}
			sup {
				vertical-align: text-top
			}
			sub {
				vertical-align: text-bottom
			}
			input, textarea, select {
				font-family: inherit;
				font-size: inherit;
				font-weight: inherit
			}
			input, textarea, select {
				font-size: 100%
			}
			legend {
				color: #000
			}
			body {
				background: #f8f7f5;
				color: #222;
				font-family: Helvetica, STHeiti STXihei, Microsoft JhengHei, Microsoft YaHei, Tohoma, Arial;
				height: 100%;
				padding: 15px 0 0;
				position: relative
			}
			body > .tips {
				display: none;
				left: 50%;
				padding: 20px;
				position: fixed;
				text-align: center;
				top: 50%;
				width: 200px;
				z-index: 100
			}
			.page {
				padding: 15px
			}
			.page .page-error, .page .page-loading {
				line-height: 30px;
				position: relative;
				text-align: center
			}
			.btn {
				background-color: #fcfcfc;
				border: 1px solid #ccc;
				border-radius: 5px;
				box-shadow: 0 1px 4px rgba(0,0,0,0.3);
				color: #222;
				cursor: pointer;
				display: block;
				font-size: 15px;
				font-weight: bold;
				margin: 15px 0;
				moz-box-shadow: 0 1px 4px rgba(0,0,0,0.3);
				padding: 10px;
				text-align: center;
				text-decoration: none;
				webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.3)
			}
			.icons {
				background: url(http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icons.png) no-repeat 0 0;
				border-radius: 5px;
				height: 25px;
				overflow: hidden;
				position: relative;
				width: 25px
			}
			.icons.arrow-r {
				background: url(http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/brand_profileinweb_arrow@2x.png) no-repeat center center;
				background-size: 100%;
				height: 16px;
				width: 12px
			}
			.icons.check {
				background-position: -25px 0
			}
			#activity-detail .page-bizinfo .header #activity-name {
				color: #000;
				font-size: 20px;
				font-weight: bold;
				white-space: pre-wrap;
				word-wrap: normal;
				word-break: normal
			}
			.page-bizinfo {
				padding-left: 15px;
				padding-right: 15px
			}
			.activity-meta {
				display: inline-block;
				vertical-align: middle;
				margin-left: 8px;
				padding-top: 2px;
				padding-bottom: 2px;
				color: #8c8c8c;
				font-size: 11px
			}
			.activity-meta.no-extra {
				margin-left: 0
			}
			.activity-info .text-ellipsis {
				display: inline-block;
				vertical-align: middle;
				max-width: 104px;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap
			}
			#post-user {
				text-decoration: none;
				outline: 0;
				color: #607fa6
			}
			a.activity-meta {
				text-decoration: none;
				outline: 0;
				color: #607fa6
			}
			a.activity-meta:active {
				color: #607fa6
			}
			a.activity-meta:active .icon_link_arrow {
				background: transparent url(http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/link_arrow_right_blue.png) no-repeat 0 0;
				-webkit-background-size: 100%;
				-moz-background-size: 100%;
				-o-background-size: 100%;
				background-size: 100%
			}
			.activity-info .icon_link_arrow {
				margin-left: 3px;
				margin-top: -5px
			}
			.icon_link_arrow {
				display: none;
				vertical-align: middle;
				width: 7px;
				height: 7px;
				background: transparent url(http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/link_arrow_right_blue.png) no-repeat 0 0;
				-webkit-background-size: 100%;
				-moz-background-size: 100%;
				-o-background-size: 100%;
				background-size: 100%
			}
			#activity-detail .page-content {
				margin: 4px 0 0;
				padding-left: 15px;
				padding-right: 15px
			}
			#activity-detail .page-content .media {
				margin: 18px 0
			}
			#activity-detail .page-content .media img {
				width: 100%
			}
			#activity-detail .page-content .text {
				color: #3e3e3e;
				line-height: 1.5;
				width: 100%
			}
			#activity-detail .page-content .text p {
				*zoom: 1;
				min-height: 1.5em;
				min-height: 1.5em;
				word-wrap: normal;
				word-break: normal;
				white-space: pre-wrap
			}
			#activity-detail .page-content .text p:after {
				content: "\200B";
				display: block;
				height: 0;
				clear: both
			}
			#activity-list .header {
				font-size: 20px
			}
			#activity-list .page-list {
				border: 1px solid #ccc;
				border-radius: 5px;
				margin: 18px 0;
				overflow: hidden
			}
			#activity-list .page-list .line.btn {
				border-radius: 0;
				margin: 0;
				text-align: left
			}
			#activity-list .page-list .line.btn .checkbox {
				height: 25px;
				line-height: 25px;
				padding-left: 35px;
				position: relative
			}
			#activity-list .page-list .line.btn .checkbox .icons {
				background-color: #ccc;
				left: 0;
				position: absolute;
				top: 0
			}
			#activity-list .page-list .line.btn.off .icons {
				background-image: none
			}
			.vm {
				vertical-align: middle
			}
			.tc {
				text-align: center
			}
			.db {
				display: block
			}
			.dib {
				display: inline-block
			}
			.b {
				font-weight: 700
			}
			.clr {
				clear: both
			}
			.text img {
				max-width: 100% !important;
				height: auto !important
			}
			.page-toolbar {
				padding: 18px 0;
				overflow: hidden;
				*zoom: 1;
				height: 16px;
				line-height: 16px
			}
			.page-toolbar a {
				color: #607fa6;
				font-size: 14px;
				text-decoration: none;
				text-shadow: 0 1px #fff;
				-webkit-text-shadow: 0 1px #fff;
				-moz-text-shadow: 0 1px #fff
			}
			.page-url {
				float: left
			}
			.page-toolbar a.page-imform {
				float: right;
				color: #7b7b7b
			}
			.page-toolbar .pager {
				display: block;
				margin: 0 auto -16px;
				text-align: center;
				font-size: 14px
			}
			.page-toolbar .pager a {
				margin: 0 10px
			}
			.page-toolarea {
				font-size: 14px;
				padding: 10px 0 20px
			}
			.page-toolarea a {
				display: block;
				line-height: 2em;
				color: #7b7b7b;
				text-decoration: none
			}
			.page-toolarea .icon_arrow_gray {
				margin-left: 5px;
				margin-top: -0.2em
			}
			.res_iframe {
				width: 100%;
				background-color: transparent;
				border: 0
			}
			.line_title {
				text-align: center;
				margin-top: 20px;
				border-top: 1px dotted #a8a8a7
			}
			.line_title .tips {
				display: inline-block;
				position: relative;
				top: -9px;
				padding-left: 16px;
				padding-right: 16px;
				font-size: 14px;
				color: #cfcfcf;
				background-color: #f8f7f5;
				text-decoration: none
			}
			.icon_arrow_gray {
				display: inline-block;
				vertical-align: middle;
				width: 7px;
				height: 7px;
				background: transparent url(http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/icon_arrow_gray.png) no-repeat 0 0;
				-webkit-background-size: 100%;
				-moz-background-size: 100%;
				-o-background-size: 100%;
				background-size: 100%
			}
			.selectTdClass {
				background-color: #edf5fa !important
			}
			table.noBorderTable td, table.noBorderTable th, table.noBorderTable caption {
				border: 1px dashed #ddd !important
			}
			table {
				margin-bottom: 10px;
				border-collapse: collapse;
				display: table;
				width: 100% !important
			}
			td, th {
				word-wrap: break-word;
				word-break: break-all;
				padding: 5px 10px;
				border: 1px solid #DDD
			}
			caption {
				border: 1px dashed #DDD;
				border-bottom: 0;
				padding: 3px;
				text-align: center
			}
			th {
				border-top: 2px solid #BBB;
				background: #f7f7f7
			}
			.ue-table-interlace-color-single {
				background-color: #fcfcfc
			}
			.ue-table-interlace-color-double {
				background-color: #f7faff
			}
			td p {
				margin: 0;
				padding: 0
			}
		</style>
		<!--[if lt IE 9]>
		<link rel="stylesheet" type="text/css" href="http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/pc-page1d0858.css"/>
		<![endif]-->
		<link media="screen and (min-width:1000px)" rel="stylesheet" type="text/css" href="http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/style/pc-page1d0858.css"/>
		<style>
			body {
				-webkit-touch-callout: none;
				-webkit-text-size-adjust: none;
			}
		</style>
		<style>
			#nickname {
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				max-width: 90%;
			}
			ol, ul {
				list-style-position: inside;
			}
			#activity-detail .page-content .text {
				font-size: 16px;
			}
		</style>
	</head>

	<body id="activity-detail">
		<img width="12px" style="position: absolute;top:-1000px;" src="http://res.wx.qq.com/mmbizwap/zh_CN/htmledition/images/ico_loading1984f1.gif">

		<div class="page-bizinfo">
			<div class="header">
				<h1 id="activity-name"></h1>
				<p class="activity-info">
					<span id="post-date" class="activity-meta no-extra" id="msg_time"></span>
					<span class="activity-meta" id="wechatName"></span>
					<a href="javascript:viewProfile();" id="post-user" class="activity-meta"> <span class="text-ellipsis" id="msg_author"></span><i class="icon_link_arrow"></i> </a>
				</p>
			</div>
		</div>

		<div id="page-content" class="page-content">
			<div id="img-content">

				<div class="media" id="media">
					<img id="msg_image" src="" />
				</div>
				<div class="text" id="msg_content">

				</div>
				<p class="page-toolbar">
					<a href="#" id="sourceUrl" class="page-url">阅读原文</a>
					<a href="#" class="page-imform">举报</a>
				</p>
			</div>
		</div>
		<script type="text/javascript">
			var id = qmsk.getQueryValue("id");
			var response = qmsk.asynGet('../massmessage/find/messageinfo/' + id);
			var nickname = response.getValue("author");
			var msg_title = response.getValue("titile");
			var msg_desc = response.getValue("digest");
			var msg_source_url = response.getValue("url");
			var msg_content = response.getValue("content");
			msg_content = HTMLDeCode1(msg_content);
			var msg_time = response.getValue("createFileTime");
			var msg_image = response.getValue("imagePath");
			var wechatName = "阡陌时空";
			$(function() {
				$("#msg_content").html(msg_content);
				$("#activity-name").html(msg_title);
				$("#wechatName").html(wechatName);
				$("#msg_author").html(nickname);
				$("#msg_time").html(msg_time);
				$("#msg_image").attr('src', msg_image);
				$("#sourceUrl").click(function() {
					window.location.href = msg_source_url;
				});

			});

			var tid = "";
			var aid = "";
			var uin = "MTQ0OTQ2Njc2MA==";
			var key = "";
			var biz = "MjM5NTYzMTYxNA==";

			var user_name = "gh_de6b7ad17d9d";
			var fakeid = "MTQ0OTQ2Njc2MA==";
			var version = "";
			var is_limit_user = "0";
			var msg_cdn_url = "http://mmbiz.qpic.cn/mmbiz/TicPdZ808ayTbMicZl3HV5aC0UWWEnhCyx5EO9BoXBb2PKlLQNBmjrGwGibwXXGib1J5eDQTESz3TsvyFoJMEzNU3Q/0";
			var msg_link = "http://mp.weixin.qq.com/s?__biz=MjM5NTYzMTYxNA==&amp;mid=200408088&amp;idx=1&amp;sn=ed2e2c5ec134ea64b784e1c6ea32a4b4#rd";
			var networkType;

			function HTMLEnCode(str) {
				var s = "";
				if (str.length == 0)
					return "";
				s = str.replace(/&/g, "&gt;");
				s = s.replace(/</g, "&lt;");
				s = s.replace(/>/g, "&gt;");
				s = s.replace(/    /g, "&nbsp;");
				s = s.replace(/\'/g, "'");
				s = s.replace(/\"/g, "&quot;");
				s = s.replace(/\n/g, "<br>");
				return s;
			}

			function HTMLDeCode1(str) {
				var s = "";
				if (str.length == 0)
					return "";
				s = str.replace(/&gt;/g, "&");
				s = s.replace(/&lt;/g, "<");
				s = s.replace(/&gt;/g, ">");
				s = s.replace(/&nbsp;/g, "    ");
				s = s.replace(/'/g, "\'");
				s = s.replace(/&quot;/g, "\"");
				s = s.replace(/<br>/g, "\n");
				return s;
			}

		</script>
		<script>
			function hash(e) {
				var t = 5381;
				for (var n = 0; n < e.length; n++)
					t = (t << 5) + t + e.charCodeAt(n), t &= 2147483647;
				return t;
			}

			function trim(e) {
				return e.replace(/^\s*|\s*$/g, "");
			}

			function ajax(e) {
				var t = (e.type || "GET").toUpperCase(), n = e.url, r = typeof e.async == "undefined" ? !0 : e.async, i = typeof e.data == "string" ? e.data : null, s = new XMLHttpRequest, o = null;
				s.open(t, n, r), s.onreadystatechange = function() {
					s.readyState == 3 && e.received && e.received(s), s.readyState == 4 && (s.status >= 200 && s.status < 400 && (clearTimeout(o), e.success && e.success(s.responseText)), e.complete && e.complete(), e.complete = null);
				}, t == "POST" && s.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8"), s.setRequestHeader("X-Requested-With", "XMLHttpRequest"), s.send(i), typeof e.timeout != "undefined" && ( o = setTimeout(function() {
					s.abort("timeout"), e.complete && e.complete(), e.complete = null;
				}, e.timeout));
			}

			function parseParams(e) {
				if (!e)
					return {};
				var t = e.split("&"), n = {}, r = "";
				for (var i = 0, s = t.length; i < s; i++)
					r = t[i].split("="), n[r[0]] = r[1];
				return n;
			}

			function htmlDecode(e) {
				return e.replace(/&#39;/g, "'").replace(/<br\s*(\/)?\s*>/g, "\n").replace(/&nbsp;/g, " ").replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&quot;/g, '"').replace(/&amp;/g, "&");
			}

			function report(e, t, n) {
				var r = e.split("?").pop();
				r = r.split("#").shift();
				if (r == "")
					return;
				var i = [r, "action_type=" + n, "uin=" + t].join("&");
				ajax({
					url : "/mp/appmsg/show",
					type : "POST",
					timeout : 2e3,
					data : i
				});
			}

			function reportTimeOnPage() {
				var e = location.href, t = e.split("?").pop();
				t = t.split("#").shift();
				if (t == "")
					return;
				var n = [t, "start_time=" + _wxao.begin, "end_time=" + (new Date).getTime(), "uin=" + fakeid, "title=" + encodeURIComponent(title), "action=pagetime"].join("&");
				ajax({
					url : "/mp/appmsg/show?" + n,
					async : !1,
					timeout : 2e3
				});
			}

			function share_scene(e, t) {
				var n = "";
				tid != "" && ( n = "tid=" + tid + "&aid=" + 54);
				var r = e.split("?")[1] || "";
				r = r.split("#")[0];
				if (r == "")
					return;
				var i = [r, "scene=" + t];
				return n != "" && i.push(n), r = i.join("&"), e.split("?")[0] + "?" + r + "#" + (e.split("#")[1] || "");
			}

			function get_url(e, t) {
				t = t || "";
				var n = e.split("?")[1] || "";
				n = n.split("#")[0];
				if (n == "")
					return;
				var r = [n];
				return t != "" && r.push(t), n = r.join("&"), e.split("?")[0] + "?" + n + "#" + (e.split("#")[1] || "");
			}

			function viewProfile() {
				typeof WeixinJSBridge != "undefined" && WeixinJSBridge.invoke && WeixinJSBridge.invoke("profile", {
					username : user_name,
					scene : "57"
				});
			}

			function gdt_click(e, t, n, r, i, s) {
				if (has_click[i])
					return;
				has_click[i] = !0;
				var o = document.getElementById("loading_" + i);
				o && (o.style.display = "inline");
				var u = +(new Date);
				ajax({
					url : "/mp/advertisement_report?report_type=2&type=" + e + "&url=" + encodeURIComponent(t) + "&tid=" + i + "&rl=" + encodeURIComponent(n) + "&uin=" + uin + "&key=" + key + "&__biz=" + biz + "&r=" + Math.random(),
					type : "GET",
					timeout : 1e3,
					complete : function(n) {
						has_click[i] = !1, o && (o.style.display = "none"), e == "5" ? typeof WeixinJSBridge != "undefined" && WeixinJSBridge.invoke("profile", {
							username : t,
							scene : "57"
						}) : location.href = get_url(t, "tid=" + i);
					},
					async : !0
				});
			}

			function addEvent(e, t, n) {
				window.addEventListener ? e.addEventListener(t, n, !1) : window.attachEvent ? e.attachEvent("on" + t, function(e) {
					return function(t) {
						n.call(e, t);
					};
				}(e)) : e["on" + t] = n;
			}

			function log(e) {
				var t = document.getElementById("log");
				if (t) {
					var n = t.innerHTML;
					t.innerHTML = n + "<div>" + e + "</div>";
				}
			}

			function initpicReport() {
				function e(e) {
					var t = [];
					for (var n in e)
					t.push(n + "=" + encodeURIComponent(e[n] || ""));
					return t.join("&");
				}

				if (!networkType)
					return;
				var t = window.performance || window.msPerformance || window.webkitPerformance, n = null;
				if (!t || typeof t.getEntries == "undefined")
					return;
				var r, i = 100, s = document.getElementsByTagName("img"), o = navigator.userAgent, u;
				/micromessenger\/(\d+\.\d+)/i.test(o), u = RegExp.$1;
				for (var a = 0, f = s.length; a < f; a++) {
					r = parseInt(Math.random() * 100);
					if (r > i)
						continue;
					var l = s[a].getAttribute("src");
					if (l.indexOf("mp.weixin.qq.com") >= 0)
						continue;
					var c = t.getEntries(), h;
					for (var p = 0; p < c.length; p++) {
						h = c[p];
						if (h.name == l) {
							ajax({
								type : "POST",
								url : "/mp/appmsgpicreport?__biz=" + biz + "&uin=" + uin + "&key=" + key + "#wechat_redirect",
								data : e({
									rnd : Math.random(),
									uin : uin,
									version : version,
									client_version : u,
									device : navigator.userAgent,
									time_stamp : parseInt(+(new Date) / 1e3),
									url : l,
									img_size : s[a].fileSize || 0,
									user_agent : navigator.userAgent,
									net_type : networkType,
									sample : s.length,
									delay_time : parseInt(h.duration)
								})
							});
							break;
						}
					}
				}
			}

			var ISWP = !!navigator.userAgent.match(/Windows\sPhone/i), sw = 0;

			if (ISWP) {
				var profile = document.getElementById("post-user");
				profile && profile.setAttribute("href", "weixin://profile/" + user_name);
			}

			var cookie = {
				get : function(e) {
					if (e == "")
						return "";
					var t = new RegExp(e + "=([^;]*)"), n = document.cookie.match(t);
					return n && n[1] || "";
				},
				set : function(e, t) {
					var n = new Date;
					n.setDate(n.getDate() + 1);
					var r = n.toGMTString();
					return document.cookie = e + "=" + t + ";expires=" + r, !0;
				}
			}, title = trim(htmlDecode(msg_title)), sourceurl = trim(htmlDecode(msg_source_url));

			msg_link = htmlDecode(msg_link), function() {
				function e() {
					var e = "", t = msg_cdn_url, n = msg_link, r = htmlDecode(msg_title), i = htmlDecode(msg_desc);
					i = i || n, WeixinJSBridge.call("hideToolbar"), "1" == is_limit_user && WeixinJSBridge.call("hideOptionMenu"), WeixinJSBridge.on("menu:share:appmessage", function(s) {
						WeixinJSBridge.invoke("sendAppMessage", {
							appid : e,
							img_url : t,
							img_width : "640",
							img_height : "640",
							link : share_scene(n, 1),
							desc : i,
							title : r
						}, function(e) {
							report(n, fakeid, 1);
						});
					}), WeixinJSBridge.on("menu:share:timeline", function(e) {
						report(n, fakeid, 2), WeixinJSBridge.invoke("shareTimeline", {
							img_url : t,
							img_width : "640",
							img_height : "640",
							link : share_scene(n, 2),
							desc : i,
							title : r
						}, function(e) {
						});
					});
					var s = "";
					WeixinJSBridge.on("menu:share:weibo", function(e) {
						WeixinJSBridge.invoke("shareWeibo", {
							content : r + share_scene(n, 3),
							url : share_scene(n, 3)
						}, function(e) {
							report(n, fakeid, 3);
						});
					}), WeixinJSBridge.on("menu:share:facebook", function(e) {
						report(n, fakeid, 4), WeixinJSBridge.invoke("shareFB", {
							img_url : t,
							img_width : "640",
							img_height : "640",
							link : share_scene(n, 4),
							desc : i,
							title : r
						}, function(e) {
						});
					}), WeixinJSBridge.on("menu:general:share", function(s) {
						var o = 0;
						switch (s.shareTo) {
							case "friend":
								o = 1;
								break;
							case "timeline":
								o = 2;
								break;
							case "weibo":
								o = 3;
						}
						s.generalShare({
							appid : e,
							img_url : t,
							img_width : "640",
							img_height : "640",
							link : share_scene(n, o),
							desc : i,
							title : r
						}, function(e) {
							report(n, fakeid, o);
						});
					});
					var o = {
						"network_type:fail" : "fail",
						"network_type:edge" : "2g",
						"network_type:wwan" : "3g",
						"network_type:wifi" : "wifi"
					};
					typeof WeixinJSBridge != "undefined" && WeixinJSBridge.invoke && WeixinJSBridge.invoke("getNetworkType", {}, function(e) {
						networkType = o[e.err_msg], initpicReport();
					});
				}


				typeof WeixinJSBridge == "undefined" ? document.addEventListener ? document.addEventListener("WeixinJSBridgeReady", e, !1) : document.attachEvent && (document.attachEvent("WeixinJSBridgeReady", e), document.attachEvent("onWeixinJSBridgeReady", e)) : e();
			}(), function() {
				var e = null, t = 0, n = msg_link.split("?").pop(), r = hash(n);
				window.addEventListener ? (window.addEventListener("load", function() {
					t = cookie.get(r), window.scrollTo(0, t);
				}, !1), window.addEventListener("unload", function() {
					cookie.set(r, t), reportTimeOnPage();
				}, !1), window.addEventListener("scroll", function() {
					clearTimeout(e), e = setTimeout(function() {
						t = window.pageYOffset;
					}, 500);
				}, !1), document.addEventListener("touchmove", function() {
					clearTimeout(e), e = setTimeout(function() {
						t = window.pageYOffset;
					}, 500);
				}, !1)) : window.attachEvent && (window.attachEvent("load", function() {
					t = cookie.get(r), window.scrollTo(0, t);
				}, !1), window.attachEvent("unload", function() {
					cookie.set(r, t), reportTimeOnPage();
				}, !1), window.attachEvent("scroll", function() {
					clearTimeout(e), e = setTimeout(function() {
						t = window.pageYOffset;
					}, 500);
				}, !1), document.attachEvent("touchmove", function() {
					clearTimeout(e), e = setTimeout(function() {
						t = window.pageYOffset;
					}, 500);
				}, !1));
			}(), function() {
				function e(e) {
					typeof window.WeixinJSBridge != "undefined" && WeixinJSBridge.invoke("imagePreview", {
						current : e,
						urls : n
					});
				}

				function t() {
					var t = document.getElementById("img-content");
					t = t ? t.getElementsByTagName("img") : [];
					for (var r = 0, i = t.length; r < i; r++) {
						var s = t.item(r), o = s.getAttribute("data-src") || s.getAttribute("src");
						o && (n.push(o), function(t) {
							s.addEventListener ? s.addEventListener("click", function() {
								e(t);
							}) : s.attachEvent && s.attachEvent("click", function() {
								e(t);
							});
						}(o));
					}
				}

				var n = [];
				window.addEventListener ? window.addEventListener("load", t, !1) : window.attachEvent && (window.attachEvent("load", t), window.attachEvent("onload", t));
			}();

			var has_click = {};

			(function() {
				function detect() {
					var e = (window.pageYOffset || document.documentElement.scrollTop) - 20;
					for (var t = 0, n = images.length; t < n; t++) {
						var r = images[t], i = r.el.offsetTop;
						!r.show && e < i + r.height && e + height > i && (r.el.setAttribute("src", r.src), r.show = !0), ISWP && r.el.width * 1 > sw && (r.el.width = sw);
					}
				}

				function onScroll() {
					clearTimeout(timer), timer = setTimeout(detect, 100);
					var gdt_area = document.getElementById("gdt_area");
					if (!!gdt_area && !ping_apurl) {
						var scrollTop = window.pageYOffset || document.documentElement.scrollTop, offsetTop = gdt_area.offsetTop;
						if (scrollTop + innerHeight > offsetTop) {
							var gdt_a = document.querySelectorAll("#gdt_area a");
							if (gdt_a.length) {
								gdt_a = gdt_a[0];
								if (gdt_a.dataset && gdt_a.dataset.apurl) {
									ping_apurl = !0;
									var gid = gdt_a.dataset.gid, tid = gdt_a.dataset.tid;
									ajax({
										url : "/mp/advertisement_report?report_type=1&tid=" + tid + "&adver_group_id=" + gid + "&apurl=" + encodeURIComponent(gdt_a.dataset.apurl) + "&uin=" + uin + "&key=" + key + "&__biz=" + biz + "&r=" + Math.random(),
										success : function(res) {
											try {
												res = eval("(" + res + ")");
											} catch (e) {
												res = {};
											}
											res && res.ret != 0 && ( ping_apurl = !1);
										},
										async : !0
									});
								}
							}
						}
					}
				}

				function onLoad() {
					var e = document.getElementsByTagName("img"), t = document.getElementById("page-content");
					t.currentStyle ? sw = t.currentStyle.width : typeof getComputedStyle != "undefined" && ( sw = getComputedStyle(t).width), sw = 1 * sw.replace("px", "");
					for (var n = 0, r = e.length; n < r; n++) {
						var i = e.item(n);
						if (!i.getAttribute("data-src"))
							continue;
						images.push({
							el : i,
							src : i.getAttribute("data-src"),
							height : i.offsetHeight,
							show : !1
						});
					}
					detect(), initpicReport();
				}

				var timer = null, innerHeight = window.innerHeight || document.documentElement.clientHeight, height = innerHeight + 40, images = [], ping_apurl = !1;
				window.addEventListener ? (window.addEventListener("scroll", onScroll, !1), window.addEventListener("load", onLoad, !1), document.addEventListener("touchmove", onScroll, !1)) : (window.attachEvent("onscroll", onScroll), window.attachEvent("onload", onLoad));
			})(), function() {
				function e() {
					var e = document.getElementsByTagName("a"), t = !1;
					if (!!e) {
						var r = e.length;
						for (var i = 0; i < r; ++i) {
							var s = e[i], o = s.getAttribute("href"), u = /^(http|https):\/\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)(\/)?/g, a = u.exec(o);
							a && a[2] && a[2] != "mp.weixin.qq.com" && ( t = t || [], t.push(o), n.push(encodeURIComponent(o)));
						}
					}
					return t;
				}

				function t() {
					var e = document.getElementsByTagName("form");
					if (e)
						for (var t = 0; t < e.length; ++t) {
							var n = e[t];
							if (n) {
								var i = n.outerHTML || "";
								r.push(encodeURIComponent(n.getAttribute("action") + i.substr(0, 400)));
							}
						}
					return e ? e.length : 0;
				}

				var n = [], r = [], i = [];
				e() && i.push(1), t() && i.push(2), i.length > 0 && ( n = "&url=" + n.join("||"), r = "&furl=" + r.join("||"), ajax({
					url : "/mp/hijack?type=" + i.join(",") + "&r=" + Math.random() + n + r,
					type : "POST",
					timeout : 2e3,
					data : ""
				}));
			}();
		</script>
		<script type="text/javascript">
			if (Math.random() < 0.1) {
				var page_endtime = (+new Date());
				var page_time = page_endtime - _wxao.begin;
				var is_link = "2" == "1";
				var oss_key = is_link ? 13 : 14;
				var report_time_url = 'https://mp.weixin.qq.com/misc/jsreport?type=avg&23521_' + oss_key + '=' + page_time + '&23521_15=1&23521_16=1&23521_17=3&23521_15|23521_16|23521_17=1&r=' + Math.random();
				var _img = new Image(1, 1);
				_img.src = report_time_url;
			}
		</script>
	</body>
</html>

